﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAM.Framework.Repository.Repositories.Pager
{
    /// <summary>
    /// 分页接口
    /// </summary>
    public interface IPager<TEntity>
    {
        /// <summary>
        /// 普通分页
        /// </summary>
        /// <param name="option">分页参数</param>
        /// <returns></returns>
        PageResult<TEntity> GetPage(PageOption<TEntity> option);
    }
}
